@import '../../../styles/var.scss';
@import '../../../styles/mixins.scss';

.page {
  :global {
    .g-basic-layout-header-title {
      justify-content: flex-start;
    }
  }
}

// 搜索区域
.searchSection {
  background-color: #fff;
}

.dressPage {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
}

// Tabs区域
.tabsSection {
  background-color: #fff;
  // border-bottom: 2px solid $border-color-base;
  
  :global {
    .nut-tabs {
      --nutui-tabs-titles-background-color: #fff;
      --nutui-tabs-tab-line-color: #{$color-primary};
    }
  }
}

// 筛选区域
.filterSection {
  display: flex;
  align-items: center;
  background-color: #fff;
  
  .mainFilter {
    flex: 1;
    padding-right: 136px;
  }
  
  .moreFilterBtn {
    margin-left: 24px;
    margin-right: 32px;
    position: absolute;
    right: 0;
    
    :global {
      .nut-button {
        --nutui-button-border-color: #{$border-color-base};
        --nutui-button-default-color: #{$text-color-main};
      }
    }
  }
}

// 服装列表容器
.dressListContainer {
  flex: 1;
  // padding: 32px;
}

.loading {
  @include flex-center;
  padding: 80px 0;
}

// 服装行（每行两个服装）
.dressRow {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  
  &:last-child {
    margin-bottom: 0;
  }
}

.dressItem {
  flex: 1;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

// 空占位符，用于保持布局一致性
.emptyPlaceholder {
  flex: 1;
}

.dressImage {
  position: relative;
  width: 100%;
  height: 400px;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  @include flex-center;
  width: 100%;
  height: 100%;
  background-color: $background-color-base;
  color: $text-color-secondary;
  font-size: $font-size-base;
}

.dressInfo {
  padding: 24px;
}

.dressName {
  display: block;
  font-size: $font-size-large;
  font-weight: 500;
  color: $text-color-main;
  margin-bottom: 16px;
  @include ellipsis;
}

.dressPrice {
  display: block;
  font-size: $font-size-large;
  font-weight: 600;
  color: $color-primary;
  margin-bottom: 12px;
}

.dressColor,
.dressSize {
  display: block;
  font-size: $font-size-small;
  color: $text-color-secondary;
  margin-bottom: 8px;
}


// 筛选弹窗
.filterPopup {
  :global {
    .nut-popup {
      max-height: 80vh;
    }
  }
}

.filterContent {
  padding: 32px;
  max-height: 60vh;
  overflow-y: auto;
}

.filterLoading {
  @include flex-center;
  padding: 80px 0;
}

.filterGroup {
  margin-bottom: 48px;
  
  &:last-child {
    margin-bottom: 0;
  }
}

.filterTitle {
  display: block;
  font-size: $font-size-large;
  font-weight: 500;
  color: $text-color-main;
  margin-bottom: 24px;
}

.filterActions {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-top: 2px solid $border-color-base;
  background-color: #fff;
}

.resetBtn,
.applyBtn {
  flex: 1;
}

// 更多筛选弹窗
.moreFilterPopup {
  :global {
    .nut-popup {
      max-height: 80vh;
    }
  }
}

.moreFilterContent {
  padding: 32px;
  height: 60vh;
}

.filterGroup {
  margin-bottom: 48px;
  
  &:last-child {
    margin-bottom: 0;
  }
}

.filterTitle {
  display: block;
  font-size: $font-size-large;
  font-weight: 500;
  color: $text-color-main;
  margin-bottom: 24px;
}

.moreFilterActions {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-top: 2px solid $border-color-base;
  background-color: #fff;
}

.resetBtn,
.applyBtn {
  flex: 1;
}

// 空状态
.emptyState {
  @include flex-center;
  flex-direction: column;
  padding: 120px 32px;
  color: $text-color-secondary;
}